<?php
namespace app\index\controller;
header('Content-Type: text/html; charset=utf-8');
use app\admin\service\WordService;
use app\BaseController;
use app\command\JrkadminCurd;
use app\common\service\QrcodeSrvice;
use think\console\Input;
use think\console\Output;
use think\Exception;
use think\facade\Console;


class Index extends BaseController
{
    public function index()
    {
        //dd(ucfirst("login/utt"));
      // dd(password("123456"));
        //dd(password_very('$2y$10$XxyKGjfAtyo5I9.9HBY21O1frCziHTOzuWhhdiDypvUldM24xXVzW',"123456"));
        //$c=create_qrcode("123456",150);

      // return redirect(url("admin/Index/index")->__toString());

       // dd(sysconfig("upload","COS_accessKey"));
       // $up=['code'=>1,'msg'=>'dasdsa'];
       // event("ActiveInitAfter",[$up]);

        //方法调用 command
        //dump(app()->getBasePath());
 /*       $com=new JrkadminCurd();
        $input = new Input(["Hello","Hello","Hello","--app","admin"]);
        $output=new Output();

        try{
            $com->run($input,$output);
        }catch (Exception $exception){

        }*/



       // $output = Console::call('make:jrkadmin_curd', ["Hello","Hellos","Hlo"]);
      //  return $output->fetch();

    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
